package cn.lingyangwl.agile.system.model.rqrs.role;

import cn.lingyangwl.agile.model.constants.ValidationCons;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 添加角色权限请求体
 * @author shenguangyang
 */
@Getter
@Setter
@ToString
public class AssignRolePermissionReq {

    /**
     * 角色id
     */
    @NotNull(message = ValidationCons.NOT_EMPTY)
    private Long roleId;

    /**
     * 前一次权限ids
     */
    private String lastPermissionIds;

    /**
     * 权限id
     */
    @NotEmpty(message = "请选择权限")
    private String permissionIds;
}
